package com.cryptoneedle.garden.service.util;

import cn.hutool.v7.core.codec.binary.Base64;

/**
 * <p>description:  </p>
 *
 * @author CryptoNeedle
 * @date 2025-10-29
 */
public class CryptoUtils {

    public static String decrypt(String password) {
        // 解密
        try {
            String decrypt = Base64.decodeStr(password);
            return decrypt;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }

    public static void main(String[] args) {
        String encode = Base64.encode("");
        System.out.println(encode);
        encode = Base64.decodeStr(encode);
        System.out.println(encode);
    }
}